﻿<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/style.css" />
<!--/meta 作为公共模版分离出去-->
<title>充值列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 财务管理 <span class="c-gray en">&gt;</span> 充值列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <form action="<?php echo url('finance/rechargeList')?>" method="get">
        <div class="text-c">充值时间：
            <input type="text" name="startTime" value="<?php echo isset($display['startTime']) ? $display['startTime'] : ''?>" onfocus="WdatePicker()" id="datemin" class="input-text Wdate" style="width:120px;">
            至
            <input type="text" name="endTime" value="<?php echo isset($display['endTime']) ? $display['endTime'] : ''?>"   onfocus="WdatePicker()" id="datemax" class="input-text Wdate" style="width:120px;">
            <input type="text" name="searchName" value="<?php echo isset($display['searchName']) ? $display['searchName'] : ''?>" class="input-text" style="width:250px" placeholder="输入昵称、ID、订单号" id="" >
			<select class="select-box" style="width: 90px;padding: 5px 5px;" size="1" name="pay_method">
				<option value="" selected>支付方式</option>
				<option value="1" <?php if(isset($display['pay_method']) && $display['pay_method'] == 1) echo 'selected';?>>支付宝</option>
				<option value="2" <?php if(isset($display['pay_method']) && $display['pay_method'] == 2) echo 'selected';?>>微信</option>
				<option value="3" <?php if(isset($display['pay_method']) && $display['pay_method'] == 3) echo 'selected';?>>苹果</option>
			</select>
			<select class="select-box" style="width: 70px;padding: 5px 5px;" size="1" name="status">
                <option value="" selected>状态</option>
                <option value="0" <?php if(isset($display['status']) && $display['status'] == 0) echo 'selected';?>>未支付</option>
                <option value="1" <?php if(isset($display['status']) && $display['status'] == 1) echo 'selected';?>>已支付</option>
                <option value="2" <?php if(isset($display['status']) && $display['status'] == 2) echo 'selected';?>>已取消</option>
                <option value="3" <?php if(isset($display['status']) && $display['status'] == 3) echo 'selected';?>>已退款</option>
            </select>
            <button type="submit" class="btn btn-success radius" style="margin-right: 300px;"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </div>
    </form>
	<div class="mt-20">
	<table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
		<thead>
			<tr class="text-c">
				<th width="60">ID</th>
				<th width="80">用户(ID)</th>
				<th width="130">订单号</th>
				<th width="80">充值金额(￥)</th>
				<th width="80">到账代币</th>
				<th width="80">支付方式</th>
				<th width="120">充值时间</th>
				<th width="120">完成时间</th>
				<th width="200">交易流水号</th>
				<th width="80">状态</th>
			</tr>
		</thead>
		<tbody>
		<?php foreach($list as $v):?>
			<tr class="text-c">
				<td><?php echo $v['id']?></td>
				<td><u style="cursor:pointer" class="text-primary" onclick="show('用户详情','<?php echo url('user/userShow',array('id' => $v['id']))?>','','','')">
					<?php echo $v['nickname']?>(<?php echo $v['uid']?>)</u></td>
				<td><?php echo $v['order_no']?></td>
				<td><?php echo $v['price']?></td>
				<td><?php echo $v['coin']?></td>
				<td><?php echo $v['pay_method'] == 1 ? '支付宝' : ($v['pay_method'] == 2 ? '微信' : '苹果')?></td>
				<td><?php echo date('Y-m-d H:i:s',$v['create_time'])?></td>
				<td><?php echo empty($v['pay_time']) ? '-' : date('Y-m-d H:i:s',$v['pay_time'])?></td>
				<td><?php echo empty($v['trade_no']) ? '-' : $v['trade_no']?></td>
                <td class="td-status"><span class="label <?php echo empty($v['status']) ? 'label-secondary' : ($v['status'] == 1 ? 'label-success' : ($v['status'] == 2 ? 'label-defaunt' : 'label-danger'));?> radius">
                    <?php echo empty($v['status']) ? '待支付' : ($v['status'] == 1 ? '已支付' : ($v['status'] == 2 ? '已取消' : '已退款'))?></span>
                </td>
			</tr>
		<?php endforeach;?>
        <?php if(empty($list)):?>
        <tr class="text-l"><td colspan="20">没有找到匹配的记录</td></tr>
        <?php endif;?>
		</tbody>
	</table>
	</div>
</div>
<script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/js/layer.js"></script>
<script type="text/javascript" src="/static/admin/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/static/admin/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
/*添加,编辑*/
function show(title,url,w,h){
	layer_show(title,url,w,h);
}
</script> 
</body>
</html>